Customizing QuickDraw GX Dialog Boxes
Your application can customize QuickDraw GX dialog boxes. To customize a QuickDraw GX dialog box, you need to take the following general steps:
These steps need not be done in order; however, all must be completed. The following sections describe how your application adds a panel to a QuickDraw GX dialog box and how to automate the response to user actions using the extended item list (
- Install a message handler to override the message that causes a QuickDraw GX print dialog box to be displayed. Your override function loads your panel.
- Create an item list (
'DITL'
) resource that defines the items, such as radio buttons, editable text fields, checkboxes, and pop-up menus, that you want to include in your panel. You may have to create additional resources, such as a control ('CNTL'
) resource for pop-up menus.- Create an icon resource that is displayed in the extended dialog box.
- Create a panel (
gxPrintPanelType
) resource that provides a name for your panel and associates the panel with the item list resource and the icon resource.- Install a handler to respond to events while the panel is active. This handler can be an extended item list (
gxExtendedDITLType
) resource or may be an override of thegxHandlePanelEvent
message.
gxExtendedDITLType
) resource.
Subtopics
- Adding Panels to Dialog Boxes
- Setting Up Dialog Box Resources
- Parsing Page Ranges
Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help